import request from "@/utils/request";


export function deliveryAddressListByUserIdService(userId){
    // const params=new URLSearchParams()
    return request.get('/deliveryAddress/listByUserId?userId='+userId)
}

export function deliveryAddressSaveService(deliveryAddress){

    return request.post('/deliveryAddress/save',deliveryAddress)
}

export function deliveryAddressUpdateService(deliveryAddress){
    return request.put('/deliveryAddress/update',deliveryAddress)

}

export function deliveryAddressRemoveService(daId){

    return request.post('/deliveryAddress/remove?daId='+daId)

}

export function deliveryAddressByIdService(daId){
    return request.get('/deliveryAddress/getById?daId='+daId)
}